package com.zhang.cloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.Time;
import java.util.UUID;


import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

@RestController
@Slf4j
public class ConsulController8007 {

    @RequestMapping(value = "/pay/consul")
    public String paymentConsul()
    {
        try{
            TimeUnit.SECONDS.sleep(1);//暂停3秒钟
        }catch (InterruptedException e){
            e.printStackTrace();
        }
        return "springcloud with consul "+8007+"\t"+ UUID.randomUUID().toString();
    }
}

